package org.batatasframework.support.event;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.bonoon.kernel.support.IOperator;

/**
 * <pre>
 * 所有从界面调用的事件，都应该有三个对象：
 * 1. {@link IOperator}
 * 2. {@link HttpServletRequest}
 * 3. {@link HttpServletResponse}
 * </pre>
 * @author jackson
 *
 */
public abstract class AbstractEvent {
	protected final IOperator operator;
	protected final HttpServletRequest servletRequest;
	protected final HttpServletResponse servletResponse;
	
	protected AbstractEvent(IOperator operator, 
			HttpServletRequest servletRequest, 
			HttpServletResponse servletResponse){
		this.operator = operator;
		this.servletRequest = servletRequest;
		this.servletResponse = servletResponse;
	}
}
